import {GETMOVIELIST} from '../constant/movieCount'
const init={
    movieList :[]
}

export default function stroeState(prevStata=init,action){
    const {
        type,
        data
    }=action

    switch (type){
        case GETMOVIELIST:
            return{
                ...prevStata,
                movieList:data
            }
    }




    return prevStata
}